package week04.homework01MazeGame.model.item.potion;

import week04.homework01MazeGame.model.role.Player;

/**
 * @desc 铁皮药水类，继承自 BasePotion
 * @author li
 */
public class IronSkinPotion extends BasePotion {

    private static final int DEFENSE = 2;

    @Override
    public String getName() {
        return "铁皮药水";
    }

    @Override
    public void use(Player player) {
        player.addDefense(DEFENSE);
    }

    @Override
    public String getDescription() {
        return "使用后增加 " + DEFENSE + " 防御值";
    }

}
